import {Entity, PrimaryGeneratedColumn, Column, ManyToOne, BaseEntity} from 'typeorm';
import { GoodsAttrCategory } from './goods-attr-category.entity';

@Entity()
export class GoodsAttr extends BaseEntity {
    @PrimaryGeneratedColumn()
    id: number;

    @Column()
    name: string;

    @ManyToOne(() => GoodsAttrCategory)
    category: GoodsAttrCategory;

    @Column()
    optionStatus: number;

    @Column()
    optionList: number;

    @Column()
    sort: number;
}
